import { httpInstance } from '@/utils/request'

interface InitiateAfterSalesAPIData {
  project_id: string
  desc: string
  images: string
}

interface InitiateAfterSalesAPIResData {
  code: number
  data: null
  msg: string
  time: string
}

export function initiateAfterSalesAPI(
  data: InitiateAfterSalesAPIData,
  token: string,
) {
  return httpInstance.post<
    InitiateAfterSalesAPIResData,
    InitiateAfterSalesAPIData
  >(
    'api/Project/projectAfterSales',
    data,
    { headers: { token } },
  )
}
